﻿using RockBus.ServiceModel;
using RockBus.Transport.Interfaces;
using System;
using System.ServiceModel.Channels;

namespace RockBus.Transport.Wcf
{
    public class OneWayClient : ClientBaseEx<IOneWay>, IOneWay
    {
        public OneWayClient(ClientBaseArgs args)
            : base(args)
        {
        }

        public IAsyncResult BeginProcessMessage(Message message, AsyncCallback callback, object state)
        {
            return base.Contract.BeginProcessMessage(message, callback, state);
        }

        public void EndProcessMessage(IAsyncResult result)
        {
            base.Contract.EndProcessMessage(result);
        }
    }
}